package com.song.shop.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Topic 模式接收消息
 * @author song
 *
 */
@Component
public class TopicReceiver1 {
	
	@RabbitListener(queues = "topic.message")
	public void process(String msg) {
		System.out.println("TopicReceiver1接收到 : "+msg);
	}
}
